<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
	<?php 
	include_once('../BUS/NguoiBanBUS.php');
	?>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Thông tin shop</title>
		<link rel="stylesheet" href="../css/reset.css" type="text/css" />
		<link rel="stylesheet" href="../css/common.css" type="text/css" />
		<link rel="stylesheet" href="../css/seller.css" type="text/css" />
		<script src="../scripts/jquery-1.5.2.min.js"></script>
		<script src="../scripts/common.js"></script>

	</head>
	<body>
		<div id="page">
			<div id="subinfo">
				<div class="content">
					<table></tbody>
						<tr>
							<td class="phone">
								<p>Than phiền? Gọi 090-828-3489 (miễn cước)</p>
							</td>
							<td class="login">
								<ul>
									<li><span>Đăng nhập</span> | </li>
									<li><a href="#">Đăng ký</a></li>
								</ul>
							</td>					
						</tr>
					</tbody></table>
				</div>
			</div>
			<div id="banner">
				<div class="content">
					<form>
						<label for="username">Tên đăng nhập:</label>
						<input id="username" class="tb" type="text" />
						<label for="password">Mật khẩu:</label>
						<input id="password" class="tb" type="password" />					
						<input id="remember" type="checkbox" />
						<label for="remember">Ghi nhớ đăng nhập</label>
						<input type="submit" class="btn" value="Đăng nhập" />
						<div id="close">đóng</div>
					</form>
				</div>
			</div>
			<div id="seller-bar">
				
			</div>
			<div id="search">
				<div class="content">
					<form>
						<span>Tôi muốn tìm</span>
						<select>
							<option>sản phẩm</option>
							<option>gian hàng</option>
						</select>
						<span>có từ khóa là</span>
						<input class="tb" type="text" />
						<input class="btn" type="submit" value="Tìm kiếm">
						<span>hoặc</span>
						<a href="#">tìm nâng cao</a>
					</form>
				</div>
			</div>
			<div id="content">
				<div id="shop-banner">
					<img src="../temp/shop-banner.jpg" />
				</div>
				<div id="seller-func" class="block layout-2col-col1">
					<div class="title"><h4>Chức năng</h4></div>
					<ul class="content cat-menu">
						<li class="first"><a href="#">Thông tin cá nhân</a></li>
						<li><a href="#">Thông tin gian hàng</a></li>
						<li><a href="#">Danh sách sản phẩm</a></li>						
						<li><a href="#">Danh sách đơn hàng</a></li>
						<li class="last"><a href="#">Danh sách sự kiện</a></li>
					</ul>
				</div>
				<div id="seller-shop-info" class="block layout-2col-col2">
					<div class="title">
					  <h3>Đăng sự kiện </h3>
				  </div>
					<div class="content">
						
<?php
$id = "lvhung";
$result = NguoiBanBUS::LaySanPhamTheoUsername($id);
for($i = 0 ; $i < count($result) ; $i++)
{
	$row = $result[$i];
?>

<table width="700px" border="0" cellpadding="0px" cellspacing="0px">
  						  <tr>
							<td align="center" >&nbsp;</td>
						  </tr>
						  <tr>
							<td height="528" >
							
							<table width="90%" height="525" border="0" align="center">
								<tr>
								  <td colspan="2">&nbsp;</td>
								</tr>
								<tr>
								  <td colspan="2" align="center"><h4>THÔNG TIN SỰ KIỆN </h4></td>
								</tr>
								<tr>
								  <td align="right" bgcolor="#CCCCCC"><strong>Tên sự kiện: </strong></td>
								  <td bgcolor="#CCCCCC"><input name="TenSanPham" type="text" id="TenSanPham" size="60"  /></td>
								</tr>
								<tr>
								  <td align="right" bgcolor="#F2F2F2"><strong>Ngày bắt đầu: </strong></td>
								   <td bgcolor="#CCCCCC"><input name="TenSanPham" type="text" id="TenSanPham" size="60"  /></td>
								</tr>
								<tr>
								  <td align="right" bgcolor="#F2F2F2"><strong>Ngày kết thúc:</strong></td>
								  <td bgcolor="#F2F2F2"><input name="GiaSanPham" type="text" id="GiaSanPham" size="60"  /></td>
								</tr>
								<tr>
								  <td align="right" bgcolor="#CCCCCC"><strong>Số lượng bán: </strong></td>
								  <td bgcolor="#CCCCCC"><input name="SoLuong" type="text" id="SoLuong" size="60" /></td>
								</tr>
								
								<tr>
								  <td align="right" bgcolor="#CCCCCC"><strong>Hình Mô Tả : </strong></td>
								  <td bgcolor="#CCCCCC"><input type="file" id="image" name="image" /><div style="color:red"></div></td>
								</tr>
								<tr>
								  <td height="70" align="right" bgcolor="#F2F2F2"><strong>Nội dung chi tiết: </strong></td>
								  <td bgcolor="#F2F2F2"><textarea name="Mota" cols="45" rows="10" id="Mota" ></textarea></td>
								</tr>
								  <td>&nbsp;</td>
								  <td>
								  <div style="float:left;padding-left:100px"><input type="submit" value="Thêm sự kiện" width="20px" /></div><div style="float:right;padding-right:200px"><a href="index.php?com=SanPham&fun=add"><input type="reset" value="Tạo mới" width="20px" /></a></div>								  </td>
								</tr>
							</table></td>
						  </tr>
					  </table>	
  
<?php 
		}
?>
					</div>
				</div>
			</div>
			<div id="footer">
				<p>&copy; 2011 - Nhóm Ứng Dụng Phân Tán 1 - ĐHKHTN. All rights reserved.</p>
			</div>
		</div>
	</body>
</html>